<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/6/25
 * Time: 14:10
 */

namespace app\common\model;


use think\Model;

class Civilization extends Model
{

    public function CivilizationCate(){
        return $this->hasOne('CivilizationCate', 'id', 'cate_id')->bind([
            'cate_name'=>'name'
        ]);
    }

    public function getContentAttr($value){
        return htmlspecialchars_decode($value);
    }

}